package packVistas;

import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;

public class FairPlay extends JDialog {

	private JLabel lJFairPlay,lEFairPlay,lAmarillas,lRojas,lAmarillasE, lRojasE;
	
	public FairPlay() {
		setModal(true);
		setTitle("FairPlay");
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.CENTER);
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{253, 0, 1, 60, 0};
		gbl_panel.rowHeights = new int[]{17, 0, 17, 0, 0, 0, 62, 0, 1, 0, 17, 0, 0, 59, 27, 0};
		gbl_panel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		
		JLabel lblElJugadorGanador = new JLabel("El jugador ganador del premio FairPlay es ");
		GridBagConstraints gbc_lblElJugadorGanador = new GridBagConstraints();
		gbc_lblElJugadorGanador.anchor = GridBagConstraints.NORTHWEST;
		gbc_lblElJugadorGanador.insets = new Insets(0, 0, 5, 5);
		gbc_lblElJugadorGanador.gridx = 0;
		gbc_lblElJugadorGanador.gridy = 5;
		panel.add(lblElJugadorGanador, gbc_lblElJugadorGanador);
		
		lJFairPlay = new JLabel("");
		GridBagConstraints gbc_lJFairPlay = new GridBagConstraints();
		gbc_lJFairPlay.insets = new Insets(0, 0, 5, 5);
		gbc_lJFairPlay.gridx = 1;
		gbc_lJFairPlay.gridy = 5;
		panel.add(lJFairPlay, gbc_lJFairPlay);
		
		lAmarillas = new JLabel("");
		GridBagConstraints gbc_lAmarillas = new GridBagConstraints();
		gbc_lAmarillas.insets = new Insets(0, 0, 5, 5);
		gbc_lAmarillas.gridx = 0;
		gbc_lAmarillas.gridy = 6;
		panel.add(lAmarillas, gbc_lAmarillas);
		
		JLabel lblNewLabel = new JLabel("Amarillas");
		GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
		gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel.gridx = 1;
		gbc_lblNewLabel.gridy = 6;
		panel.add(lblNewLabel, gbc_lblNewLabel);
		
		lRojas = new JLabel("");
		GridBagConstraints gbc_lRojas = new GridBagConstraints();
		gbc_lRojas.insets = new Insets(0, 0, 5, 5);
		gbc_lRojas.gridx = 0;
		gbc_lRojas.gridy = 7;
		panel.add(lRojas, gbc_lRojas);
		
		JLabel lblRojas = new JLabel("Rojas");
		GridBagConstraints gbc_lblRojas = new GridBagConstraints();
		gbc_lblRojas.insets = new Insets(0, 0, 5, 5);
		gbc_lblRojas.gridx = 1;
		gbc_lblRojas.gridy = 7;
		panel.add(lblRojas, gbc_lblRojas);
		
		JLabel lblElEquipoGanador = new JLabel("El equipo ganador del premio FairPlay es");
		GridBagConstraints gbc_lblElEquipoGanador = new GridBagConstraints();
		gbc_lblElEquipoGanador.anchor = GridBagConstraints.NORTHWEST;
		gbc_lblElEquipoGanador.insets = new Insets(0, 0, 5, 5);
		gbc_lblElEquipoGanador.gridx = 0;
		gbc_lblElEquipoGanador.gridy = 10;
		panel.add(lblElEquipoGanador, gbc_lblElEquipoGanador);
		
		JButton btnCerrar = new JButton("Cerrar");
		btnCerrar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});
		
		lEFairPlay = new JLabel("");
		GridBagConstraints gbc_lEFairPlay = new GridBagConstraints();
		gbc_lEFairPlay.insets = new Insets(0, 0, 5, 5);
		gbc_lEFairPlay.gridx = 1;
		gbc_lEFairPlay.gridy = 10;
		panel.add(lEFairPlay, gbc_lEFairPlay);
		
		lAmarillasE = new JLabel("");
		GridBagConstraints gbc_lAmarillasE = new GridBagConstraints();
		gbc_lAmarillasE.insets = new Insets(0, 0, 5, 5);
		gbc_lAmarillasE.gridx = 0;
		gbc_lAmarillasE.gridy = 11;
		panel.add(lAmarillasE, gbc_lAmarillasE);
		
		JLabel lblAmarillas = new JLabel("Amarillas");
		GridBagConstraints gbc_lblAmarillas = new GridBagConstraints();
		gbc_lblAmarillas.insets = new Insets(0, 0, 5, 5);
		gbc_lblAmarillas.gridx = 1;
		gbc_lblAmarillas.gridy = 11;
		panel.add(lblAmarillas, gbc_lblAmarillas);
		
		lRojasE = new JLabel("");
		GridBagConstraints gbc_lRojasE = new GridBagConstraints();
		gbc_lRojasE.insets = new Insets(0, 0, 5, 5);
		gbc_lRojasE.gridx = 0;
		gbc_lRojasE.gridy = 12;
		panel.add(lRojasE, gbc_lRojasE);
		
		JLabel lblRojas_1 = new JLabel("Rojas");
		GridBagConstraints gbc_lblRojas_1 = new GridBagConstraints();
		gbc_lblRojas_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblRojas_1.gridx = 1;
		gbc_lblRojas_1.gridy = 12;
		panel.add(lblRojas_1, gbc_lblRojas_1);
		GridBagConstraints gbc_btnCerrar = new GridBagConstraints();
		gbc_btnCerrar.anchor = GridBagConstraints.NORTHEAST;
		gbc_btnCerrar.gridx = 3;
		gbc_btnCerrar.gridy = 14;
		panel.add(btnCerrar, gbc_btnCerrar);

	}
}
